package com.xiaofang.utils;

import com.xiaofang.pojo.Title;
import lombok.Data;

import java.util.List;

/**
 * @program: xiaofangbackend
 * @ClassName Page
 * @description:
 * @author: aodi
 * @create: 2025-06-20 20:08
 * @Version 1.0
 */
@Data
public class Page<T> {

    private  Integer pageNum;
    private  Integer pageSize;
    private  Integer  pages;
    private  Long total;
    private List<T> data ;



    public Page(Integer pageNum, Integer pageSize, Integer pages,Long total, List<T> data) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
        this.data = data;
        this.pages = pages  ;
    }


}
